package com.adan.auditlog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.adan.auditlog.annotation.AuditModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("auditlog")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DBOperationLog implements Serializable {
    /**
     *
     */
    @AuditModelProperty(value = "")
	@TableId(type = IdType.AUTO)
    private Long id;

    private String bizId;

    /**
     *
     */
    @AuditModelProperty(value = "")
    private String fieldType;

    /**
     *
     */
    @AuditModelProperty(value = "")
    private String afterValue;

    /**
     *
     */
    @AuditModelProperty(value = "")
    private String beforeValue;

    /**
     *
     */
    @AuditModelProperty(value = "")
    private Date createTime;

    /**
     *
     */
    @AuditModelProperty(value = "")
    private String changeValue;

    /**
     *
     */
    @AuditModelProperty(value = "")
    private String userId;

    /**
     *
     */
    @AuditModelProperty(value = "")
    private String userName;


	private String tableName;

	private String remark;

	private String methodName;

	private String traceId;

	private String moduleName;
}
